package org.jash.sportnews2109

import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }
    @Test
    fun test() {
        var p = Person(10, "张三")
        println(p)
        p++
        println(p)

    }
}
data class Person(var age:Int, var name:String){
    operator fun inc(): Person {
        age++
        return this
    }

}